package peerToPeerFacebook.proj;

/**
 * Interface exposing the commands supported by File Server
 */

public interface IFileServerMethods 
{
	/**
	 * Creates empty file on server
	 * @param serverID
	 * @param fileName
	 */
	public void create(int serverID, String fileName);

	/**
	 * Gets file contents from server, and prints the contents on console
	 * @param serverID
	 * @param fileName	 
	 */
	public void get(int serverID, String fileName);
	
	/**
	 * Overwrite contents of file on server	 * 
	 * @param serverID
	 * @param fileName
	 * @param contents
	 */
	public void put(int serverID, String fileName, String contents);
	
	/**
	 * Appends contents to file on server
	 * @param serverID
	 * @param fileName
	 * @param contents
	 */
	public void append(int serverID, String fileName, String contents);
	
	/**
	 * Deletes file on server
	 * @param serverID
	 * @param fileName
	 */
	public void delete(int serverID, String fileName);	
}
